
local time = require("core/time");
-- local Async = require("Async")
local command = {};
local run = coroutine.create(function(cmd,...)
    local i = 0;

    while true do
        local f = command[cmd];
        if f~= nil then
            f(...);
            end;
        coroutine.yield()
    end
end)
function command.test()
    print("hello world");
end
function command.test2(...)
    print(...)
    time.sleep(1)
end
